package com.joysuch.wwyt.mh.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.joysuch.wwyt.common.entity.UserDataEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author Leong
 * @date 2022/9/19 15:17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wwyt_mh_alarm_level_config")
@ApiModel(value = "报警等级配置对象", description = "")
public class MhAlarmLevelConfig extends UserDataEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("配置类型:0全局;1单监测点")
    private Integer type;

    @ApiModelProperty("监测点ID")
    private Long monitoringPointId;

    @ApiModelProperty("数值超限等级:1低限;2高限;3低低限;4高高限")
    private Integer alarmLevel;

    @ApiModelProperty("报警级别名称:蓝-黄-橙-红")
    private String levelName;

    @ApiModelProperty("报警级别:1蓝;2黄;3橙;4红")
    private Integer level;
}
